package cn.huiyunche.base.service.enums;

/**
 * 运单支付类型 10:未支付 20:待支付 30:已支付
 *
 * @author Administrator
 */
public enum WaybillPayStatusEnum {
    UNPAID(10, "未支付"),
    WAIT_PAID(20, "待支付"),
    PAID_ALL(30, "已支付");

    private final int value;
    private final String text;

    WaybillPayStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static WaybillPayStatusEnum getByValue(int value) {
        for (WaybillPayStatusEnum temp : WaybillPayStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
